using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter40
{
	/// <summary>
	/// Example01: Thermal Radiation from Different Objects
	/// Find the peak wavelength of the blackbody radiation 
	/// emitted by each of the following:
	/// (A)	
	/// The human body when the skin temperature is 35^{\circle} C.
	/// (B)	
	/// The tungsten filament of a lightbulb, which operates at 2000 K.
	/// (C)	
	/// The Sun, which has a surface temperature of about 5800 K.  
	/// </summary>
	public class Example01
	{
		public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Temperature T = new L.Temperature();
			T.K = 308.0;
			double lambda = L.QuantumPhysics.WaveLengthInWienLaw(T);
            result+=Convert.ToString(lambda)+"   (A)\r\n";
			T.K = 2000.0;
			lambda = L.QuantumPhysics.WaveLengthInWienLaw(T);
			result+=Convert.ToString(lambda)+"   (B)\r\n";
			T.K = 5800.0;
			lambda = L.QuantumPhysics.WaveLengthInWienLaw(T);
			result+=Convert.ToString(lambda)+"   (C)\r\n";
		}
	}
}
